import Vue from 'vue'
import validator from './validator'
import dropdown from './dropdown'
import title from './title'
// 单个注册指令
// Vue.directive('validator', vaildator)

// 声明自定义指令对象
const directives = {
    validator,
    dropdown,
    title
}

// 循环注册指令
// Object.entries  循环对象
for (const [key, value] of Object.entries(directives)) {
     Vue.directive(key, value)
}